/**
 * 
 */
package dk.dtu.is.model.settings;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * It represents the minimum information to map a given object on a IEC 61850 Server implemented through REST interface
 * 
 * In future releases, this class could be adapted to take full advantages of
 * http://docs.oracle.com/javase/6/docs/api/java/util/prefs/Preferences.html
 * 
 * @author dsac
 *
 */
@XmlRootElement(name="IEC61850ServerSettings")
public class Iec61850ServerSettings {

	private String ipAddress;
	private int portNumber;
	private String logicalNode;

	
    @XmlElement(name="IpAddress")
	public String getIpAddress() {
		return ipAddress;
	}
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	
	@XmlElement(name="PortNumber")
	public int getPortNumber() {
		return portNumber;
	}
	public void setPortNumber(int portNumber) {
		this.portNumber = portNumber;
	}
	
	@XmlElement(name="LogicalNode")
	public String getLogicalNode() {
		return logicalNode;
	}
	public void setLogicalNode(String logicalNode) {
		this.logicalNode = logicalNode;
	}
	
    @Override
    public String toString() {
        return "IEC61850ServerSettings ["
            + (ipAddress != null ? "IpAddress=" + ipAddress + ", " : "")
            + "PortNumber =" + portNumber + ", "
            + (logicalNode!= null ? "LogicalNode=" + logicalNode : "") + "]";
    }
	
}
